<template>
  <el-card shadow="never" class="border-none">
    <div class="total-body">
      <div class="left-title">统计</div>
      <div class="head">
        <div>热销产品</div>
        <div>收入</div>
      </div>
      <div class="goods-list-box">
        <div class="item" v-for="(item, index) in 8" :key="index">
          <div class="info">
            <div class="img"></div>
            <div>
              <div class="name">产品名称LnkPpp</div>
              <div class="intro">
                联想（Lenovo）拯救者Y7000P 2023游戏笔记本电脑 13代酷睿i5
                16英寸(13代i5-13500H 16G 1T RTX4050 2.5K 165Hz高色域屏)
              </div>
            </div>
          </div>
          <div class="saning">
            <div class="price">$985</div>
            <div class="status">激活</div>
          </div>
        </div>
      </div>
    </div>
  </el-card>
</template>
  <script setup>
import { reactive } from "vue";
</script>
  <style lang="scss" scoped>
.total-body {
  .left-title {
    font-weight: bold;
    position: relative;
    margin: 0 0 0 15px;
    &::before {
      content: "";
      position: absolute;
      left: -20px;
      height: 25px;
      width: 10px;
      background-color: #94f689;
      border-radius: 4px;
    }
  }
  .head {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f4f4f4;
    padding: 15px 0;
    color: #999;
    margin-bottom: 15px;
    margin-top: 30px;
    font-size: 15px;
  }
  .goods-list-box {
    .item {
      display: flex;
      justify-content: space-between;
      margin-bottom: 15px;

      .info {
        display: flex;

        .img {
          width: 70px;
          height: 70px;
          border-radius: 8px;
          background: #f4f4f4;
        }
        .name {
          font-weight: bold;
          margin-left: 15px;
        }
        .intro {
          color: #999;
          font-size: 10px;
          word-break: break-all;    
          text-overflow: ellipsis;    
          display: -webkit-box; /** 对象作为伸缩盒子模型显示 **/   
           -webkit-box-orient: vertical; /** 设置或检索伸缩盒对象的子元素的排列方式 **/    
          -webkit-line-clamp: 2; /** 显示的行数 **/    
          overflow: hidden; 
          width: 200px;
          line-clamp: 2;
          margin-left: 15px;
        }
      }
      .saning {
        .price {
          font-weight: bold;
        }
        .status {
          background: #94f689;
          display: flex;
          justify-content: center;
          align-items: center;
          border-radius: 20px;
          padding: 0 10px;
        }
      }
    }
  }
}
</style>